<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<%@ include file="/include/include.jsp" %>
</head>

<body>
	
	<%@ include file="/include/header.jsp" %>

	<%@ include file="/include/menu.jsp" %>
	
			
	<div id="mainContent">
		<h2><a href="${ctx}/${menu.url}">${menu.description}</a>&nbsp;-&nbsp;<a href="${ctx}/${empty currViewBarSubMenu_ ? submenu.url : currViewBarSubMenu_.url}">${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description}</a></h2>
		
		<div class="tool-bar">
			<div title="${menu.description} - ${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description} - 查询${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description}"  href="${ctx}/system/warehouseproduct/search" class="modal-window modal-link">过滤查询</div>
			<!-- <div title="${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description} - 添加${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description}"  href="${ctx}/system/warehouseproduct/add" class="modal-window modal-link">添加</div> -->
			<a href="${ctx}/system/warehouseproduct/export?type=real">导出仓储约定报表</a>
			<a href="${ctx}/system/warehouseproduct/export?type=virtual">导出虚拟约定报表</a>
			
			<div title="${menu.description} - ${submenu.description} - 导入${submenu.description}"  href="${ctx}/system/warehouseproduct/compare/to" class="modal-window modal-link">仓储约定比较</div>
			<!--  -->
			<div title="${menu.description} - ${submenu.description} - 导入${submenu.description}"  href="${ctx}/system/warehouseproduct/import?type=real" class="modal-window modal-link">导入仓储约定</div>
			<div title="${menu.description} - ${submenu.description} - 导入${submenu.description}"  href="${ctx}/system/warehouseproduct/import?type=virtual" class="modal-window modal-link">导入仓储虚拟约定</div>
		</div>
		
		<div class="sarch-bar" id="searchDiv">
		</div>
		
		<div class="grid-list">
			<table class="grid" cellspacing="0">
				<thead>
					<tr>
						<td>仓储编码</td>
						<td>仓储名称</td>
						<!-- <td>产品编码</td>
						<td>产品名称</td>
						<td>产品数量</td>
						<td>操作</td> 
						-->
					</tr>
				</thead>
				<tbody>
					<c:forEach var="ware" items="${warehouses}">
						
						<tr onmouseover="this.style.backgroundColor= '#A0CFEC'" onmouseout="this.style.backgroundColor= '#ffffff'">
							<td><a href="${ctx}/system/warehouseproduct/detail/?warehouseId=${ware.id}">${ware.code}</a></td>
							<td><a href="${ctx}/system/warehouseproduct/detail/?warehouseId=${ware.id}">${ware.name}</a></td>
						</tr>
					
					</c:forEach>
					
				</tbody>
			</table>
			<t:page action="${ctx}/system/warehouseproduct/list"/>
		</div>
	</div>
	
	<%@ include file="/include/script.jsp" %>

</body>

</html> 